<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>Reproject Operator</title>
    <link rel="stylesheet" href="../style.css">
</head>
<body>
<table class="header">
    <tr class="header">
        <td class="header">&nbsp;Reproject Operator</td>
        <td class="header" align="right">
            <a href="nbdocs://org.esa.snap.snap.help/org/esa/snap/snap/help/docs/general/overview/SnapOverview.html">
                <img src="images/snap_header.jpg" border="0"/></a>
        </td>
    </tr>
</table>
<h1>Reproject Operator Description</h1>
<h2>Overview</h2>
<table>
  <tr><td><b>Name:</b></td><td><code>Reproject</code></td></tr>
  <tr><td><b>Full name:</b></td><td><code>org.esa.snap.core.gpf.common.reproject.ReprojectionOp</code></td></tr>
  <tr><td><b>Purpose:</b></td><td>Reprojection of a source product to a target Coordinate Reference System.</td></tr>
  <tr><td><b>Version:</b></td><td>1.0</td></tr>
</table>
<h2>Description</h2>
<p>
 The reprojection operator is used to geo-reference data products.
 Beside plain reprojection it is able to use a Digital Elevation Model (DEM) to orthorectify a data product and
 to collocate one product with another.
 <p>
 The following XML sample shows how to integrate the {@code Reproject} operator in a processing graph (an
 Lambert_Azimuthal_Equal_Area projection using the WGS-84 datum):
 <pre>
    &lt;node id="reprojectNode"&gt;
        &lt;operator&gt;Reproject&lt;/operator&gt;
        &lt;sources&gt;
            &lt;sourceProducts&gt;readNode&lt;/sourceProducts&gt;
        &lt;/sources&gt;
        &lt;parameters&gt;
            &lt;wktFile/&gt;
            &lt;crs&gt;
              PROJCS["Lambert_Azimuthal_Equal_Area / World Geodetic System 1984",
                GEOGCS["World Geodetic System 1984",
                   DATUM["World Geodetic System 1984",
                      SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
                   AUTHORITY["EPSG","6326"]],
                   PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
                   UNIT["degree", 0.017453292519943295],
                   AXIS["Geodetic longitude", EAST],
                   AXIS["Geodetic latitude", NORTH]],
                PROJECTION["Lambert_Azimuthal_Equal_Area"],
                PARAMETER["latitude_of_center", 0.0],
                PARAMETER["longitude_of_center", 0.0],
                PARAMETER["false_easting", 0.0],
                PARAMETER["false_northing", 0.0],
                UNIT["m", 1.0],
                AXIS["Easting", EAST],
                AXIS["Northing", NORTH]]
            &lt;/crs&gt;
            &lt;resampling&gt;Nearest&lt;/resampling&gt;
            &lt;referencePixelX&gt;0.5&lt;/referencePixelX&gt;
            &lt;referencePixelY&gt;0.5&lt;/referencePixelY&gt;
            &lt;easting&gt;9.5&lt;/easting&gt;
            &lt;northing&gt;56.84&lt;/northing&gt;
            &lt;orientation&gt;0.0&lt;/orientation&gt;
            &lt;pixelSizeX&gt;0.012&lt;/pixelSizeX&gt;
            &lt;pixelSizeY&gt;0.012&lt;/pixelSizeY&gt;
            &lt;width&gt;135010246&lt;/width&gt;
            &lt;height&gt;116629771&lt;/height&gt;
            &lt;orthorectify&gt;false&lt;/orthorectify&gt;
            &lt;elevationModelName/&gt;
            &lt;noDataValue&gt;NaN&lt;/noDataValue&gt;
            &lt;includeTiePointGrids&gt;true&lt;/includeTiePointGrids&gt;
            &lt;addDeltaBands&gt;false&lt;/addDeltaBands&gt;
        &lt;/parameters&gt;
    &lt;/node&gt;
 </pre>
<h2>Sources</h2>
<table>
<tr>
  <th>Name</th>
  <th>Description</th>
</tr>
<tr>
  <td><code>sourceProduct</code></td>
  <td>The product which will be reprojected.</td>
</tr>
<tr>
  <td><code>collocationProduct</code></td>
  <td>The source product will be collocated with this product.</td>
</tr>
</table>
<h2>Parameters</h2>
<table>
<tr>
  <th>Name</th>
  <th>Data Type</th>
  <th>Default</th>
  <th>Description</th>
  <th>Constraints</th>
</tr>
<tr>
  <td><code>wktFile</code></td>
  <td><code>File</code></td>
  <td><code></code></td>
  <td>A file which contains the target Coordinate Reference System in WKT format.</td>
  <td></td>
</tr>
<tr>
  <td><code>crs</code></td>
  <td><code>String</code></td>
  <td><code></code></td>
  <td>A text specifying the target Coordinate Reference System, either in WKT or as an authority code. For appropriate EPSG authority codes see (www.epsg-registry.org). AUTO authority can be used with code 42001 (UTM), and 42002 (Transverse Mercator) where the scene center is used as reference. Examples: EPSG:4326, AUTO:42001</td>
  <td></td>
</tr>
<tr>
  <td><code>resampling</code></td>
  <td><code>String</code></td>
  <td><code>Nearest</code></td>
  <td>The method used for resampling of floating-point raster data.</td>
  <td>value set: [Nearest, Bilinear, Bicubic]</td>
</tr>
<tr>
  <td><code>referencePixelX</code></td>
  <td><code>Double</code></td>
  <td><code></code></td>
  <td>The X-position of the reference pixel.</td>
  <td></td>
</tr>
<tr>
  <td><code>referencePixelY</code></td>
  <td><code>Double</code></td>
  <td><code></code></td>
  <td>The Y-position of the reference pixel.</td>
  <td></td>
</tr>
<tr>
  <td><code>easting</code></td>
  <td><code>Double</code></td>
  <td><code></code></td>
  <td>The easting of the reference pixel.</td>
  <td></td>
</tr>
<tr>
  <td><code>northing</code></td>
  <td><code>Double</code></td>
  <td><code></code></td>
  <td>The northing of the reference pixel.</td>
  <td></td>
</tr>
<tr>
  <td><code>orientation</code></td>
  <td><code>Double</code></td>
  <td><code>0</code></td>
  <td>The orientation of the output product (in degree).</td>
  <td>interval: [-360,360]</td>
</tr>
<tr>
  <td><code>pixelSizeX</code></td>
  <td><code>Double</code></td>
  <td><code></code></td>
  <td>The pixel size in X direction given in CRS units.</td>
  <td></td>
</tr>
<tr>
  <td><code>pixelSizeY</code></td>
  <td><code>Double</code></td>
  <td><code></code></td>
  <td>The pixel size in Y direction given in CRS units.</td>
  <td></td>
</tr>
<tr>
  <td><code>width</code></td>
  <td><code>Integer</code></td>
  <td><code></code></td>
  <td>The width of the target product.</td>
  <td></td>
</tr>
<tr>
  <td><code>height</code></td>
  <td><code>Integer</code></td>
  <td><code></code></td>
  <td>The height of the target product.</td>
  <td></td>
</tr>
<tr>
  <td><code>tileSizeX</code></td>
  <td><code>Integer</code></td>
  <td><code></code></td>
  <td>The tile size in X direction.</td>
  <td></td>
</tr>
<tr>
  <td><code>tileSizeY</code></td>
  <td><code>Integer</code></td>
  <td><code></code></td>
  <td>The tile size in Y direction.</td>
  <td></td>
</tr>
<tr>
  <td><code>orthorectify</code></td>
  <td><code>boolean</code></td>
  <td><code>false</code></td>
  <td>Whether the source product should be orthorectified. (Not applicable to all products)</td>
  <td></td>
</tr>
<tr>
  <td><code>elevationModelName</code></td>
  <td><code>String</code></td>
  <td><code></code></td>
  <td>The name of the elevation model for the orthorectification. If not given tie-point data is used.</td>
  <td></td>
</tr>
<tr>
  <td><code>noDataValue</code></td>
  <td><code>Double</code></td>
  <td><code></code></td>
  <td>The value used to indicate no-data.</td>
  <td></td>
</tr>
<tr>
  <td><code>includeTiePointGrids</code></td>
  <td><code>boolean</code></td>
  <td><code>true</code></td>
  <td>Whether tie-point grids should be included in the output product.</td>
  <td></td>
</tr>
<tr>
  <td><code>addDeltaBands</code></td>
  <td><code>boolean</code></td>
  <td><code>false</code></td>
  <td>Whether to add delta longitude and latitude bands.</td>
  <td></td>
</tr>
</table>
<hr/>
</body>
</html>
